// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_imgex;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import com.nnee.p_img.p_video.cls_ImageViewTouchBase;
import com.nnee.p_imgex.p_a.cls_b;
import com.nnee.p_imgex.p_a.cls_c;

public class cls_ImageViewTouch extends cls_ImageViewTouchBase
{

    public cls_ImageViewTouch(Context context)
    {
        super(context);
        b = false;
        h();
    }

    public cls_ImageViewTouch(Context context, AttributeSet attributeset)
    {
        super(context, attributeset);
        b = false;
        h();
    }

    private void h()
    {
    }

    public void a()
    {
        super.a();
        if(a != null)
        {
            a.a();
            a = null;
        }
    }

    public void a(cls_b b1)
    {
        if(b && a != null)
            a.a(b1);
    }

    public void a(boolean flag)
    {
        b = flag;
        if(b)
            a = new cls_c(getContext(), this);
    }

    public void a_(float f, float f1)
    {
        super.a(f, f1);
        a(true, true);
    }

    public void b(boolean flag)
    {
    }

    public boolean onTouchEvent(MotionEvent motionevent)
    {
        boolean flag;
        if(b && a != null)
            flag = a.a(motionevent);
        else
            flag = super.onTouchEvent(motionevent);
        return flag;
    }

    private cls_c a;
    private boolean b;
}
